how to draw text in monogame

149

how to draw text in monogame -

// In the LoadContent() method:
SpriteFont font = Content.Load<SpriteFont>("sprite font location");
// In the Draw() method:
spriteBatch.Begin();
spriteBatch.DrawString(font, "Hello World!", position, color);
spriteBatch.End();

Comments

Submit
0 Comments